package exam.bak.beike;

import java.util.Scanner;

public class P1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = Integer.parseInt(scanner.nextLine());
        while (T-- > 0) {
            int n = Integer.parseInt(scanner.nextLine());
            System.out.println(compute(n));
        }
    }

    private static int compute(int n) {
        return 1 + (n - 1) / 2;
    }
}
